package com.yupi.lkzyoj.judge.strategy;

import com.yupi.lkzyoj.judge.strategy.impl.CppJudgeStrategyImpl;
import com.yupi.lkzyoj.judge.strategy.impl.JavaJudgeStrategyImpl;
import com.yupi.lkzyoj.model.enums.LanguageEnum;

public class JudgeStrategyManager {

    public static JudgeStrategy choice(String language) {
        if (language.toUpperCase().equals(LanguageEnum.JAVA.getText())) {
            return new JavaJudgeStrategyImpl();
        }
        return new CppJudgeStrategyImpl();
    }
}
